package com.tbit.uqbike.enums;

/**
 * @author chenmengran
 * @Description: 停车点类型
 * @date 2019\7\12 001211:54
 */
public enum ParkPointType {

    PARKPOINT_CIRCULAR_TYPE("0", "圆形停车点"),
    PARKPOINT_POLYGON_TYPE("1", "多边行停车点"),
    ;
    //开关类型
    private String type;
    //描述
    private String desc;

    private ParkPointType(String type, String desc) {
        this.type = type;
        this.desc = desc;
    }

    /**
     * 参数验证
     *
     * @param type
     * @return
     */
    public static Boolean Check(String type) {
        Boolean has_task = false;
        for (ParkPointType parkPointType : ParkPointType.values()) {
            if (parkPointType.getType().equals(type)) {
                has_task = true;
                break;
            }
        }
        return has_task;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }
}